<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>设置</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <style>
      .clearStorage {
        position: fixed;
        bottom: 0;
        left: 0;
      }
    </style>
</head>

<body>
    <header class="aui-bar aui-bar-nav">
        <div class="aui-pull-left aui-btn">
            <span class="aui-iconfont aui-icon-left"></span>
        </div>
        <div class="aui-title">Title</div>
    </header>

    <div class="clearStorage aui-btn aui-btn-block aui-btn-sm" onclick="clearAll()" tapmode>清除缓存</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {
      $api.fixStatusBar($api.dom('header'));
    };
    function clearAll() {
      $api.clearStorage();
      api.closeWin({
          name: 'setting'
      });
      // console.log(JSON.stringify(api.windows()));
    }
</script>

</html>
